package com.rerun.service;

import com.rerun.common.bean.Rest;

import javax.mail.MessagingException;
import javax.servlet.http.HttpServletRequest;
import java.io.IOException;

/**
 * The interface Mail service.
 *
 * @author dax.
 * @version v1.0
 * @since 2017 /10/12 16:54
 */
public interface IMailService {

    /**
     * 投递简历邮件.
     *
     * @param request  the request
     * @param memberId the member id
     * @param jobId    the job id
     * @return the rest
     * @throws IOException        the io exception
     * @throws MessagingException the messaging exception
     */
    Rest sendResumeEmail(HttpServletRequest request,String memberId,String jobId) throws IOException, MessagingException;

    /**
     * 邀请面试邮件.
     *
     * @param request       the request
     * @param jobId         the job id
     * @param memberId      the member id
     * @param interviewTime the interview time
     * @param remark        the remark
     * @return the rest
     * @throws IOException        the io exception
     * @throws MessagingException the messaging exception
     */
    Rest  interviewInvitationEmail(HttpServletRequest request, String jobId, String memberId, String interviewTime, String remark)throws IOException, MessagingException;

    /**
     * 拒绝邮件.
     *
     * @param parkName     the park name
     * @param emailAddress the email address
     * @return the rest
     * @throws IOException        the io exception
     * @throws MessagingException the messaging exception
     */
    Rest refuseEmail( String parkName,String emailAddress) throws IOException, MessagingException;
}
